package ooday02;

public class OverrideDemo {
    public static void main(String[] args) {
        Student james = new Student("湖人","23","勒布朗",40,"美国洛杉矶");
        james.sayHi();
        Teacher curry = new Teacher("勇士",36,"库里",50000000);
        curry.sayHi();
        Doctor kyrie = new Doctor("凯里",32,"达拉斯","德鲁大叔");
        kyrie.sayHi();




    }
}
